package com.hbu.product.hbumallproduct.vo;

import com.hbu.product.hbumallproduct.entity.AttrEntity;
import com.hbu.product.hbumallproduct.entity.AttrGroupEntity;
import lombok.Data;

import java.util.List;

/**
 * @ProjectName: hbu-mall
 * @Package: com.hbu.product.hbumallproduct.vo
 * @ClassName: AttrAttrGroupListVO
 * @Author: zxh
 * @Description:
 * @Date: 2022/11/26 21:00
 * @Version: 1.0
 */
@Data
public class AttrAttrGroupListVO {

    private Long attrGroupId;

    private String attrGroupName;

    private Integer sort;

    private String descript;

    private String icon;

    private Long catelogId;

    private List<AttrAttrGroupListChildrenVO> attrs;

    public AttrAttrGroupListVO(AttrGroupEntity attrGroup){
        this.attrGroupId = attrGroup.getAttrGroupId();
        this.attrGroupName = attrGroup.getAttrGroupName();
        this.sort = attrGroup.getSort();
        this.descript = attrGroup.getDescript();
        this.icon = attrGroup.getIcon();
        this.catelogId = attrGroup.getCatelogId();
    }

}
